// 字符串截取
const dataString = (val, length = "10") => {
	let value = val.substring(0, length) + "..."
	return val.length > length ? value : val
}
// 数字大写转换
const capital = ["壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾"]
const capitalNum = ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十"]
const lowercase = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
const transform = (val, type = "max") => {
	return capitalNum[val - 1]
}
export default {
	dataString,
	transform,
}
